
import request from '@shared/apis/request';
import * as apis from '@shared/apis';

/**
 * 创建用户
 * @param params - 创建用户所需的参数
 * @returns 返回创建的用户数据
 */
export async function post(params: IParams) {
    const url = '/users/create';
    const body = await request.post<apis.users.IUser>(url, params);
    return body.data;
}

export interface IParams extends Omit<apis.users.IUser, 'id' | 'enabledStatus'> {
}   